allow only positive integer in input type number

123

allow only positive integer in input type number -

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <input type="number" name="test_name" min="0" oninput="validity.valid||(value='');">
  </body>
</html>

Comments

Submit
0 Comments